<?php
$arrPhotos = $this->arrPhotos;
$albumName = $this->albumName;
$arrPhoto = array_values($arrPhotos);
if (sizeof($arrPhotos) > 0) 
{
    //Insert Tracking
    ?>
    <span style="display: none;"><?php echo $this->ArticleViewTrack(array('category_id'=>CATE_ID_PHOTO,'article_id'=>$arrPhoto[0]['article_id']));?></span>
    <?php
    foreach ($arrPhotos as $photo) { 
        $photo['caption'] = isset($photo['caption'])?$photo['caption']:'';
?>
        <li>
            <a href="<?php echo $this->imageurl($photo['url'], $this->imageSize['size7']); ?>">
                <input type="hidden" value="<?php echo $albumName; ?>">
                <span class="light">&nbsp;</span>
                <img id="imgTitle" src="<?php echo $this->imageurl($photo['url'], $this->imageSize['size3']); ?>" width="137" height="92" class="image0" alt="<?php echo $photo['caption']; ?>" title="<?php echo $albumName; ?>" onerror="this.src(<?php echo $this->imageurl('not-found.jpg', $this->imageSize['size3']); ?>);" />
            </a>
        </li>
<?php
    }
}
?>